package xian.woniuxy.h_static.i;

interface  I {
    void run();
}

class A {

    private String x = "123";

    private void f1() {
        System.out.println("A.f1...");
    }
    public class B {

        void f2() {
            System.out.println("********************");
            System.out.println(x);
            f1();
            System.out.println("********************");
        }


        I f3() {

            int bb = 5;

            I i = new I() {

                private int bb = 5;
                @Override
                public void run() {
                    bb=3;
                    System.out.println(x);
                    System.out.println(bb);
                }
            };



            return i;
        }

    }

    public void setX(String x) {
        this.x = x;
    }
}

public class App {
    public static void main(String[] args) {
        A a = new A();
        A.B b = a.new B();

        I i2 = b.f3();

        i2.run();
    }
}
